package net.ib.mtalk.database.task;

import android.content.Context;
import android.os.Handler;
import net.ib.mtalk.network.TcpEnvelope;
import net.ib.mtalk.network.task.AsyncNetTask;

/**
 * 클라이언트 작업만 필요할때 사용.
 * @author happy2v
 *
 */
public abstract class AsyncClientTask extends AsyncNetTask{

	public AsyncClientTask(Context context, Handler uiHandler) {
		super(context, uiHandler);
	}

	// null 을 리턴하면 네트워크 작업을 하지 않는다. 
	@Override
	protected TcpEnvelope onPreExecute() {
		return null;
	}
	
	protected abstract void onPostExecute(int resultCode, Object sentObject, Object receivedObject);
}
